package com.jinsi.mapper;

import com.jinsi.pojo.ScClassDocument;
import com.jinsi.pojo.ScClasses;
import com.jinsi.pojo.ScStudent;
import org.apache.ibatis.annotations.Mapper;

import java.math.BigDecimal;

@Mapper
public interface NewFeeMapper {


    /**
     *
     * @param id
     * @return ScClasses
     * 通过班级id查询学费
     */
    ScClasses getClassById(Integer id);


    /**
     *
     * @param name
     * @return int
     * 通过市场部名称查询市场部id
     */
    int getMarketingByName(String name);


    /**
     *
     * @param student
     * @return int
     * 添加学生信息
     */
    int addScStudent(ScStudent student);


    /**
     *
     * @param classDocument
     * @return int
     * 添加单据分类信息
     */
    int addScClassDocument(ScClassDocument classDocument);


    /**
     *
     * @param id
     * @param haveFees
     * @param documentWay
     * @return int
     * 交钱
     */
    int haveFee(int id, BigDecimal haveFees,int documentWay);
}
